package cn.itsource.org.service;

import cn.itsource.basic.service.BaseService;
import cn.itsource.basic.util.AjaxResult;
import cn.itsource.basic.util.PageList;
import cn.itsource.org.Dto.LoginDto;
import cn.itsource.org.domain.Department;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.query.DepartmentQuery;
import cn.itsource.org.query.EmployeeQuery;

import java.util.List;

public interface IEmployeeService extends BaseService<Employee,EmployeeQuery> {

    /**
     * 查询所有的部门经理
     * @return list
     */
    List<Employee> findManagers();
//    去重方法
//    验证手机号
    Employee accountingCheck(Employee admin);
    //     验证邮箱
    Employee emailCheck(Employee admin);
    //     验证手机号
    Employee phoneCheck(Employee admin);
//    登录验证
    AjaxResult loginCheck(LoginDto dto);
}
